home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 17582 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.7 KB

  1. Path: newsgate.sps.mot.com!usenet
  2. From: Kevin Brune <RP5362@email.mot.com>
  3. Newsgroups: comp.lang.c++
  4. Subject: Help: ANSI C & GNU's 'protoize'
  5. Date: Tue, 16 Apr 1996 09:29:41 -0700
  6. Organization: Motorola
  7. Message-ID: <3173CAF5.7DD0@email.mot.com>
  8. NNTP-Posting-Host: samadams.sps.mot.com
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 2.0 (X11; I; SunOS 5.5 sun4u)
  13.  
  14. Greetings, 
  15.  
  16. I was wondering if there is a known limitation to the number of files
  17. that gnu's 'protoize' tool can deal with.  I have been able to use
  18. protoize successfully on project that are less than about 150 files
  19. (both *.c and *.h).  However, I am trying to run protoize on a project
  20. that has about 400 *.c and *.h files total and I am getting core dumps
  21. (IOT Trap error).  
  22.  
  23. I am compiling and running protoize on a Sun UltraSPAC 1 under Solaris
  24. 2.5....
  25.  
  26. Here is the approach I am taking:
  27.  
  28. Step 1: First compile all 400 files using 'gcc -tradition -....' on the
  29. original K&R Style code.
  30. Step 2: Once I get a clean compile of K&R code, use 'protoize' with the
  31. same gcc options.  
  32. Step 3: Once all the *.c protoize files are created with *.save backups
  33. of the original code, re-compile on gcc using the -ansi -pedantic -Wall
  34. -Wstrict-prototypes -Wmissing-prototypes 
  35. -Wmissing-declarations -g -O switches to catch all ANSI C violations.
  36. Step 4: Clean up protoize errors and problems compiling with options in
  37. Step 3 above.  
  38.  
  39. I made it through step 1 and part of step 2 using the protoize command
  40. below and then I got the following error:
  41.  
  42.     protoize -g -c '-traditional' *.c
  43.  
  44. ....snip (skipping lots of conversions except for the last few below)
  45.  
  46. protoize: converting file `premail.c'
  47. premail.c: 206: warning: `main' excluded by preprocessing
  48. protoize: function definition not converted
  49. protoize: converting file `firm_handler.c'
  50. protoize: converting file `comp_handler.c'
  51. comp_handler.c: 123: warning: `TDOUT' excluded by preprocessing
  52. protoize: function definition not converted
  53. protoize: converting file `tree_handler.c'
  54. protoize: converting file `gentree.h'
  55. protoize: converting file `gettime.c'
  56. protoize:
  57. `/all/gcc/272r_lib271/Sun413/lib/gcc-lib/sparc-sun-sunos4.1.3_U1/2.7.
  58. 2/include/sys/fcntlcom.h' not converted
  59. protoize: converting file `defgroupread.c'
  60. protoize: converting file `groupaddndel.c'
  61. protoize: converting file `display.h'
  62. protoize: converting file `readfirmmacrofile.c'
  63. protoize: converting file `writerc.c'
  64. protoize: converting file `fullnetdebug.c'
  65. IOT trap (core dumped)
  66.  
  67. 1) Has anyone encountered this IOT trap error before?
  68.  
  69. 2) Is there a limitation on the number of files that 'protoize' can
  70. handle?
  71.  
  72. 3) Is there a FAQ for 'protoize'?
  73.  
  74. Please e-mail me and post your comments and suggestions!
  75. TIA,
  76. Kevin Brune
  77. RP5362@email.mot.com
  78.